package com.itheima.service.sms;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.result.PageResult;
import com.itheima.vo.sms.SmsHomeAdvertise;

import java.time.LocalDateTime;

public interface SmsHomeAdvertiseService extends IService<SmsHomeAdvertise> {

    /**
     * 添加广告
     * @param
     * @return
     */
    void create(SmsHomeAdvertise smsHomeAdvertise);


    /**
     * 分页查询广告
     *
     * @return
     */
    PageResult selectPage(String name, String endTime, Integer pageNum, Integer pageSize, Integer type);

    void updateStatus(Long id, Integer status);

}
